package com.ellen.mac.chatdemo.adpter;

import com.avos.avoscloud.AVUser;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ellen.mac.chatdemo.R;
import com.ellen.mac.chatdemo.model.ChatKitUser;
import com.ellen.mac.chatdemo.model.MemberItem;

import java.util.List;

/**
 * Created by mac on 2017/12/2.
 */

public class MembersAdapter extends BaseQuickAdapter<AVUser, BaseViewHolder> {
    public MembersAdapter(int layoutResId, List data) {
        super(layoutResId, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, AVUser item) {
        //TODO json

        helper.setText(R.id.name, item.getUsername());
        helper.addOnClickListener(R.id.item);
    }

}